<template>
	<view>
		<u-sticky>
			<u-tabs :list="list" :is-scroll="false" :current="current" @change="sectionChange"></u-tabs>
			<view class=" u-p-r-30 u-p-l-30 margin-zdy">
				<u-input v-model="startDate" placeholder="选择日期" type="select" @click="getT()" v-if="current == 1"/>
				<u-search placeholder="请输入关键词搜索" :clearabled="true" v-model="keyword" border-color="#606266" @custom="search" @search="search"></u-search>
			</view>
		</u-sticky>
		<u-card padding="16" v-for="item in dataList" :key="item.id" v-if="current == 0">
			<view class="" slot="head">
				<view class="wrap">
					<u-row>
						<u-col span="9" text-align="left">
							<view class="u-line-1 weikaishi2">
								<span>车次：{{item.trainNumber}}</span>
							</view>
						</u-col>
						<u-col span="3" text-align="right" v-if="item.tstate == '已定价'">
							<view class=" weikaishi3">
								<span>待装车</span>
							</view>
						</u-col>
						<u-col span="3" text-align="right" v-if="item.tstate == '待发运'">
							<view class=" weikaishi3">
								<span>待发运</span>
							</view>
						</u-col>
						<u-col span="3" text-align="right" v-if="item.tstate == '运输中'">
							<view class=" weikaishi3 jinxingzhong">
								<span>运输中</span>
							</view>
						</u-col>
						<u-col span="3" text-align="right" v-if="item.tstate == '已完成'">
							<view class=" weikaishi3 yiwancheng">
								<span>已完成</span>
							</view>
						</u-col>
						<u-col span="12" text-align="left">
							<view class="weikaishi3 lanse">
								<span>运单号：{{item.dispatchNumber}}</span>
							</view>
						</u-col>
					</u-row>
					<u-row>
						<u-col span="5" text-align="center">
							<view class="u-line-1">
								<u-icon name="car-fill" :label="item.carnumbger" label-size="33" label-color="#19be6b" color="#19be6b" size="45"></u-icon>
							</view>
						</u-col>
						<u-col span="4" text-align="center">
							<view class="u-line-1 u-m-t-5">
								<span>{{item.privatecarType}}</span>
							</view>
						</u-col>
						<u-col span="3" text-align="center">
							<view class="u-line-1 u-m-t-5" @click="badaphone(item.cartel)">
								<u-icon name="phone" :label="item.driver1" label-color="#2b85e4" color="#2b85e4" size="35"></u-icon>
							</view>
						</u-col>
					</u-row>
					<u-row>
						<u-col span="7" text-align="left">
							<view class="u-line-1 weikaishi4">
								<span>发车日期：{{item.startDate}}</span>
							</view>
						</u-col>
						<u-col span="5" text-align="center">
							<view class="u-line-1 u-m-t-5" @click="songda(item.dispatchNumber)">
								<u-icon name="file-text" label="送达签名" label-color="#2b85e4" color="#2b85e4" size="30"></u-icon>
							</view>
						</u-col>
						<u-col span="7" text-align="left">
							<view class=" u-m-t-2 weikaishi4">
								<span>总体积：{{item.tooDeployVolume}}m³</span>
							</view>
						</u-col>
						<u-col span="5" text-align="center">
							<view class="u-line-1 u-m-t-5" @click="huidan(item.dispatchNumber)">
								<u-icon name="file-text" label="回单" label-color="#2b85e4" color="#2b85e4" size="30"></u-icon>
							</view>
						</u-col>
						<u-col span="7" text-align="left" v-if="item.matrixingNumber">
							<view class=" u-m-t-2 weikaishi4">
								<span>总件数：{{item.matrixingNumber}}</span>
							</view>
						</u-col>
						<u-col span="7" text-align="left" v-else>
							<view class=" u-m-t-2 weikaishi4">
								<span>总件数：{{item.tooDeployNum}}</span>
							</view>
						</u-col>
						<u-col span="5" text-align="left">
							<view class=" u-m-t-2 weikaishi4">
								<span>总货值：{{item.transportMoney}}</span>
							</view>
						</u-col>
						<u-col span="7" text-align="left">
							<view class=" u-m-t-2 weikaishi4">
								<span>里程：{{item.mileageTraveled}}</span>
							</view>
						</u-col>
						<u-col span="5" text-align="left">
							<view class="u-line-1 u-m-t-5" v-if="item.zhuangzaiFileid" @click="viewImage(item.zhuangzaiFileid)">
								<u-icon name="file-text" label="装载照片" label-color="#2b85e4" color="#2b85e4" size="30"></u-icon>
							</view>
							<view class="u-line-1 u-m-t-5" v-else>
								<u-icon name="file-text" label="装载照片未传" label-color="#e84d74" color="#e84d74" size="30"></u-icon>
							</view>
						</u-col>
					</u-row>
				</view>
			</view>
			<view class="" slot="body">
				<view class="wrap">
					<u-row>
						<u-col span="6" text-align="center">
							<view class="u-line-1 weikaishi4">
								<span>参考价:{{item.consultMoney}}</span>
							</view>
						</u-col>
						<u-col span="6" text-align="center">
							<view class="u-line-1 weikaishi4">
								<span>付款金额:{{item.money}}</span>
							</view>
						</u-col>
					</u-row>
					<u-row>
						<u-col span="12" text-align="center">
							<text class="u-percentage-slot">满载率</text>
							<view class="u-line-1 u-m-t-2">
								<u-line-progress active-color="#19be6b" :striped="true" :percent="(item.tooDeployVolume/item.privatecarSurevolume*100).toFixed(1)" :striped-active="true"></u-line-progress>
							</view>
						</u-col>
					</u-row>
					<u-collapse>
						<u-collapse-item title="详情">
							<view v-for="(item1,index1) in item.list" :key="index1">
								<u-row>
									<u-col span="9" text-align="left">
										<view class=" u-m-t-2 weikaishi4">
											<span>{{item1.getUnit}}</span>
										</view>
									</u-col>
									<u-col span="3" text-align="center">
										<view class="u-line-1 u-m-t-5" @click="badaphone(item1.getTel)">
											<u-icon name="phone" :label="item1.getPeople" label-color="#2b85e4" color="#2b85e4" size="30"></u-icon>
										</view>
									</u-col>
									<u-col span="12" text-align="left">
										<view class=" u-m-t-2 weikaishi5">
											<span><u-icon name="map" size="29" labelSize="14px" labelColor="#00c300" label="地址"></u-icon>：{{item1.getLocation}}</span>
										</view>
									</u-col>
									<u-col span="4" text-align="left">
										<view class="weikaishi4">
											<span>线路：{{item1.lineName}}</span>
										</view>
									</u-col>
									<u-col span="4" text-align="left">
										<view class="weikaishi4">
											<span>公里数：{{item1.kilometer}}</span>
										</view>
									</u-col>
									<u-col span="4" text-align="left">
										<view class="weikaishi4">
											<span>备货口：{{item1.stockPort}}</span>
										</view>
									</u-col>
									<u-col span="4" text-align="left">
										<view class="u-line-1 u-m-t-2">
											<span>体积{{item1.tooVolume}}m³</span>
										</view>
									</u-col>
									<u-col span="4" text-align="left">
										<view class="u-line-1 u-m-t-2">
											<span>数量{{item1.totalNum}}</span>
										</view>
									</u-col>
									<u-col span="4" text-align="left">
										<view class="u-line-1 u-m-t-2">
											<span>货值{{item1.tooMoney}}</span>
										</view>
									</u-col>
									<u-col span="12" text-align="right" >
										<view class="u-m-t-25 u-line-1">
										</view>
									</u-col>
								</u-row>
							</view>
						</u-collapse-item>
					</u-collapse>
				</view>
			</view>
			<view class="foot-butten" slot="foot">
				<view :class="flex">
					<u-col span="3" text-align="center" @click="chexiaod(item)">
						<view  class="u-m-10 u-border-right">
							撤销
						</view>
					</u-col>
					<u-col span="3" text-align="center" @click="tooCarsy(item.dispatchNumber)">
						<view  class="u-m-10 u-border-right">
							配置详情
						</view>
					</u-col>
					<!-- <u-col span="3" text-align="center" @click="tooCarsy(item.dispatchNumber)" v-if="item.tstate == '运输中'">
						<view  class="u-m-10 u-border-right">
							配置详情
						</view>
					</u-col>
					<u-col span="3" text-align="center" @click="tooCarsyEdit(item.dispatchNumber)" v-else>
						<view  class="u-m-10 u-border-right">
							编辑
						</view>
					</u-col> -->
					<u-col span="3" text-align="center" @click="toyunshu(item.dispatchNumber)">
						<view  class="u-m-10 u-border-right">
							运输信息
						</view>
					</u-col>
					<u-col span="3" text-align="center" @click="tofeiyong(item.dispatchNumber)">
						<view  class="u-m-10 ">
							费用信息
						</view>
					</u-col>
				</view>
			</view>
		</u-card>
		<u-card padding="16" v-for="item in dataList2" :key="item.id" v-if="current == 1">
			<view class="" slot="head">
				<view class="wrap">
					<u-row>
						<u-col span="9" text-align="left">
							<view class="u-line-1 weikaishi2">
								<span>车次：{{item.trainNumber}}</span>
							</view>
						</u-col>
						<u-col span="3" text-align="right">
							<view class=" weikaishi3 yiwancheng">
								<span>已完成</span>
							</view>
						</u-col>
						<u-col span="12" text-align="left">
							<view class=" weikaishi3 lanse">
								<span>运单号：{{item.dispatchNumber}}</span>
							</view>
						</u-col>
					</u-row>
					<u-row>
						<u-col span="5" text-align="center">
							<view class="u-line-1">
								<u-icon name="car-fill" :label="item.carnumbger" label-size="33" label-color="#19be6b" color="#19be6b" size="45"></u-icon>
							</view>
						</u-col>
						<u-col span="4" text-align="center">
							<view class="u-line-1 u-m-t-5">
								<span>{{item.privatecarType}}</span>
							</view>
						</u-col>
						<u-col span="3" text-align="center">
							<view class="u-line-1 u-m-t-5" @click="badaphone(item.cartel)">
								<u-icon name="phone" :label="item.driver1" label-color="#2b85e4" color="#2b85e4" size="35"></u-icon>
							</view>
						</u-col>
					</u-row>
					<u-row>
						<u-col span="7" text-align="left">
							<view class="u-line-1 weikaishi4">
								<span>发车日期：{{item.startDate}}</span>
							</view>
						</u-col>
						<u-col span="5" text-align="center">
							<view class="u-line-1 u-m-t-5" @click="songda(item.dispatchNumber)">
								<u-icon name="file-text" label="送达签名" label-color="#2b85e4" color="#2b85e4" size="30"></u-icon>
							</view>
						</u-col>
						<u-col span="7" text-align="left">
							<view class=" u-m-t-2 weikaishi4">
								<span>总体积：{{item.tooDeployVolume}}m³</span>
							</view>
						</u-col>
						<u-col span="5" text-align="center">
							<view class="u-line-1 u-m-t-5" @click="huidan(item.dispatchNumber)">
								<u-icon name="file-text" label="回单" label-color="#2b85e4" color="#2b85e4" size="30"></u-icon>
							</view>
						</u-col>
						<u-col span="7" text-align="left" v-if="item.matrixingNumber">
							<view class=" u-m-t-2 weikaishi4">
								<span>总件数：{{item.matrixingNumber}}</span>
							</view>
						</u-col>
						<u-col span="7" text-align="left" v-else>
							<view class=" u-m-t-2 weikaishi4">
								<span>总件数：{{item.tooDeployNum}}</span>
							</view>
						</u-col>
						<u-col span="5" text-align="left">
							<view class=" u-m-t-2 weikaishi4">
								<span>总货值：{{item.transportMoney}}</span>
							</view>
						</u-col>
						<u-col span="7" text-align="left">
							<view class=" u-m-t-2 weikaishi4">
								<span>里程：{{item.mileageTraveled}}</span>
							</view>
						</u-col>
						<u-col span="5" text-align="left">
							<view class="u-line-1 u-m-t-5" v-if="item.zhuangzaiFileid" @click="viewImage(item.zhuangzaiFileid)">
								<u-icon name="file-text" label="装载照片" label-color="#2b85e4" color="#2b85e4" size="30"></u-icon>
							</view>
							<view class="u-line-1 u-m-t-5" v-else>
								<u-icon name="file-text" label="装载照片未传" label-color="#e84d74" color="#e84d74" size="30"></u-icon>
							</view>
						</u-col>
					</u-row>
				</view>
			</view>
			<view class="" slot="body">
				<view class="wrap">
					<u-row>
						<u-col span="6" text-align="center">
							<view class="u-line-1 weikaishi4">
								<span>参考价:{{item.consultMoney}}</span>
							</view>
						</u-col>
						<u-col span="6" text-align="center">
							<view class="u-line-1 weikaishi4">
								<span>付款金额:{{item.money}}</span>
							</view>
						</u-col>
					</u-row>
					<u-row>
						<u-col span="12" text-align="center">
							<text class="u-percentage-slot">满载率</text>
							<view class="u-line-1 u-m-t-2">
								<u-line-progress active-color="#19be6b" :striped="true" :percent="(item.tooDeployVolume/item.privatecarSurevolume*100).toFixed(1)" :striped-active="true"></u-line-progress>
							</view>
						</u-col>
					</u-row>
					<u-collapse>
						<u-collapse-item title="详情">
							<view v-for="(item1,index1) in item.list" :key="index1">
								<u-row>
									<u-col span="9" text-align="left">
										<view class=" u-m-t-2 weikaishi4">
											<span>{{item1.getUnit}}</span>
										</view>
									</u-col>
									<u-col span="3" text-align="center">
										<view class="u-line-1 u-m-t-5" @click="badaphone(item1.getTel)">
											<u-icon name="phone" :label="item1.getPeople" label-color="#2b85e4" color="#2b85e4" size="30"></u-icon>
										</view>
									</u-col>
									<u-col span="12" text-align="left">
										<view class=" u-m-t-2 weikaishi5">
											<span><u-icon name="map" size="29" labelSize="14px" labelColor="#00c300" label="地址"></u-icon>：{{item1.getLocation}}</span>
										</view>
									</u-col>
									<u-col span="4" text-align="left">
										<view class="weikaishi4">
											<span>线路：{{item1.lineName}}</span>
										</view>
									</u-col>
									<u-col span="4" text-align="left">
										<view class="weikaishi4">
											<span>公里数：{{item1.kilometer}}</span>
										</view>
									</u-col>
									<u-col span="4" text-align="left">
										<view class="weikaishi4">
											<span>备货口：{{item1.stockPort}}</span>
										</view>
									</u-col>
									<u-col span="4" text-align="left">
										<view class="u-line-1 u-m-t-2">
											<span>体积{{item1.tooVolume}}m³</span>
										</view>
									</u-col>
									<u-col span="4" text-align="left">
										<view class="u-line-1 u-m-t-2">
											<span>数量{{item1.totalNum}}</span>
										</view>
									</u-col>
									<u-col span="4" text-align="left">
										<view class="u-line-1 u-m-t-2">
											<span>货值{{item1.tooMoney}}</span>
										</view>
									</u-col>
									<u-col span="12" text-align="right" >
										<view class="u-m-t-25 u-line-1">
										</view>
									</u-col>
								</u-row>
							</view>
						</u-collapse-item>
					</u-collapse>
				</view>
			</view>
			<view class="foot-butten" slot="foot">
				<view :class="flex">
					<u-col span="4" text-align="center" @click="tooCarsy(item.dispatchNumber)">
						<view  class="u-m-10 u-border-right">
							配置详情
						</view>
					</u-col>
					<u-col span="4" text-align="center" @click="toyunshu(item.dispatchNumber)">
						<view  class="u-m-10 u-border-right">
							运输信息
						</view>
					</u-col>
					<u-col span="4" text-align="center" @click="tofeiyong(item.dispatchNumber)">
						<view  class="u-m-10 ">
							费用信息
						</view>
					</u-col>
				</view>
			</view>
		</u-card>
		<u-popup v-model="show3" mode="center" closeable width="650rpx" height="850rpx" border-radius="10">
			<view class="u-text-left u-m-t-20 weikaishi2 lanse" style="margin-left: 20rpx;">线路费用报价</view>
			<view class="wrap">
				<view style="background-color: #eaeaea;" v-for="item in feiyonglist" :key="item.id">
					<u-row>
						<u-col span="12" text-align="left">
							<view class="u-line-1 u-m-t-10 weikaishi3">
								<span>{{item.priceName}}</span>
							</view>
						</u-col>
					</u-row>
					<u-row>
						<u-col span="12" text-align="left">
							<view class="u-line-1">
								<span>线路：{{item.lineName}}</span>
							</view>
						</u-col>
						<u-col span="6" text-align="left">
							<view class="u-line-1">
								<span>单价：{{item.price}}</span>
							</view>
						</u-col>
						<u-col span="6" text-align="left">
							<view class="u-line-1">
								<span>计价方式：{{item.priceMode}}</span>
							</view>
						</u-col>
					</u-row>
					<u-row>
						<u-col span="6" text-align="left">
							<view class="u-line-1 u-m-t-10">
								<span>总量：{{item.nums}}</span>
							</view>
						</u-col>
						<u-col span="6" text-align="left">
							<view class="u-line-1 u-m-t-10 lanse">
								<span>金额：{{item.money}}</span>
							</view>
						</u-col>
					</u-row>
				</view>
			</view>
		</u-popup>
		<view>
			<u-calendar v-model="show8" mode="date" max-date="2070-01-01" @change="changesetMentiontime"></u-calendar>
		</view>
		<view>
			<u-toast ref="uToast" />
		</view>
	</view>
</template>

<script>
	import config from '../../../config.js'
	export default {
		data() {
			return {
				flex:'',
				list: [
					{
						name: '配送中'
					}, 
					{
						name: '已完成'
					}
				],
				keyword:"",
				current: 0,
				dataList: [],
			    pageNo2: 1,
			    hasMore2: true,
			    orderCount2: 0,
				
			    pageNo: 1,
			    hasMore: true,
			    orderCount: 0,
				dataList2: [],
				
				show3:false,
				feiyonglist:[],
				startDate:'',
				show8:false,
			}
		},
		onLoad() {
			//#ifdef H5 || APP-PLUS
			this.flex = 'u-flex'
			//#endif
			let year = new Date().getFullYear();//年
			let month = new Date().getMonth() + 1;//注意！月份是从0月开始获取的，所以要+1;
			let day = new Date().getDate();//日
			this.startDate =  year + '-' + (month >= 10 ? month : '0' + month) + '-' + (day >= 10 ? day : '0' + day);
			
			uni.showLoading({
				title: '加载中'
			})
			this.refresh()
			setTimeout(() => {
				uni.hideLoading()
			}, 500)
		},
		onPullDownRefresh() {
			uni.showLoading({
				title: '加载中'
			})
			this.refresh()
			setTimeout(() => {
				uni.hideLoading()
				uni.stopPullDownRefresh()
			}, 500)
		},
		onReachBottom() {
			if(this.current == 0){
				uni.showLoading({
					title: '加载中'
				})
				if (this.hasMore2) {
					this.pageNo2++ 
					setTimeout(() => {
						this.loadOrder2({
							keyword:this.keyword,
							findtype:'2'
						}).then(res => {})
						uni.hideLoading()
					}, 500)
				} else {
					setTimeout(() => {
						uni.hideLoading()
						uni.showToast({
							icon: 'none',
							title: '已经到低了哦',
							duration: 2000
						});
					}, 500)
				}
			}
			if(this.current == 1){
				uni.showLoading({
					title: '加载中'
				})
				if (this.hasMore) {
					this.pageNo++ 
					setTimeout(() => {
						this.loadOrder({
							keyword:this.keyword,
							findtype:'2'
						}).then(res => {})
						uni.hideLoading()
					}, 500)
				} else {
					setTimeout(() => {
						uni.hideLoading()
						uni.showToast({
							icon: 'none',
							title: '已经到低了哦',
							duration: 2000
						});
					}, 500)
				}
			}
		},
		methods: {
			songda(dispatchNumber){
				this.$Router.push({
					name: 'transport_reachlist',
					params: { 
						dispatchNumber:dispatchNumber,
						type:'2',
					},
				})
			},
			changesetMentiontime(e) {
				uni.showLoading({
					title: '加载中'
				})
				this.startDate = e.result
				this.refresh()
				setTimeout(() => {
					uni.hideLoading()
				}, 500)
			},
			getT(){
				this.show8 = true
			},
			viewImage(fileId) {
				let arr = []
				let img = config.root + 'system/previewa/' + fileId
				arr.push(img)
				uni.previewImage({
					urls: arr,
				});
			},
			chexiaod(item){
				uni.showModal({
					content: '确定撤销吗？',
					success: (res) => {
						if (res.confirm) {
							uni.showLoading({
								title: '正在提交'
							})
							this.$http.post('/rest/transport/removeDispatchNumberBySpec',{
							},{
								params: {
									dispatchNumber:item.dispatchNumber
								},
								header: {
									'Authorization' :uni.getStorageSync('token'),
								}
							}).then(res => {
								uni.hideLoading()
								if(res.data.code == 200) {
									this.$refs.uToast.show({
										title: '操作成功',
										type: 'success'
									})
									setTimeout(() => {
										this.refresh()
									}, 500)
									uni.request({
										method:"POST",
										url: 'https://yingyan.baidu.com/api/v3/entity/delete',
										data:{
											ak:'wYkHbMlxX7unRpCiRO3LzAr6DSVrdcGK',
											service_id:229331,
											entity_name:item.carnumbger+'-'+item.dispatchNumber
										},
										header:{
											'Content-Type':'application/x-www-form-urlencoded'
										},
										success: (res) => {
											if(res.data.status == 0){
												//成功删除轨迹实例
											} 
										}
									})
								} else {
									this.$refs.uToast.show({
										title: res.data.message,
										type: 'error'
									})
									setTimeout(() => {
										this.refresh()
									}, 500)
								}
							})
						} else if (res.cancel) {
							console.log('用户点击取消');
						}
					}
				})
			},
			tofeiyong(dispatchNumber){
				this.$http.post('/rest/transportCar/cost',{
				},{
					params: {
						dispatchNumber:dispatchNumber
					},
					header: {
						'Authorization' :uni.getStorageSync('token'),
					}
				}).then(res => {
					this.feiyonglist = res.data.data
					this.show3 = true
				})
			},
			refresh(){
				if(this.current == 0){
					this.pageNo2 = 1
					this.hasMore2 = true
					this.loadOrder2({
						keyword:this.keyword,
						findtype:'2'
					}).then(res => {
					})
				} else if(this.current == 1){
					this.pageNo = 1
					this.hasMore = true
					this.loadOrder({
						keyword:this.keyword,
						startDate:this.startDate,
						findtype:'2'
					}).then(res => {
					})
				}
			},
			loadOrder2(param = {}) {
				return new Promise((resolve, reject) => {
					param = Object.assign(param, {
						page: this.pageNo2,
						limit: 5
					})
					this.$http.post('/rest/transportCar/findCarListBySpecToo2Page',{
					},{
						params: param,
						header: {
							'Authorization' :uni.getStorageSync('token'),
						}
					}).then(res => {
						if (this.pageNo2 == 1) {
							this.dataList = res.data.data
						} else {
							this.dataList = this.dataList.concat(res.data.data)
						}
						this.orderCount2 = res.data.count
						this.hasMore2 = this.pageNo2 * 5 < res.data.count
						resolve(res)
					})
				})
			},
			loadOrder(param = {}) {
				return new Promise((resolve, reject) => {
					param = Object.assign(param, {
						page: this.pageNo,
						limit: 5
					})
					this.$http.post('/rest/transportCar/findCarListBySpecToo3',{
					},{
						params: param,
						header: {
							'Authorization' :uni.getStorageSync('token'),
						}
					}).then(res => {
						if (this.pageNo == 1) {
							this.dataList2 = res.data.data
						} else {
							this.dataList2 = this.dataList2.concat(res.data.data)
						}
						this.orderCount = res.data.count
						this.hasMore = this.pageNo * 5 < res.data.count
						resolve(res)
					})
				})
			},
			toyunshu(dispatchNumber){
				this.$Router.push({
					name: 'transport_msg',
					params: { dispatchNumber:dispatchNumber}
				})
			},
			huidan(dispatchNumber){
				this.$Router.push({
					name: 'transport_receipt',
					params: { 
						dispatchNumber:dispatchNumber,
						type:'2',
					}
				})
			},
			badaphone(tel){
				if(tel == null || tel == ''){
					uni.showToast({
						title: "暂无联系电话",
						icon: 'none'
					})
				} else {
					uni.makePhoneCall({
					    phoneNumber: tel
					});
				}
			},
			tooCarsy(dispatchNumber){
				this.$Router.push({
					name: 'checktooy',
					params: { dispatchNumber:dispatchNumber}
				})
			},
			tooCarsyEdit(dispatchNumber){
				this.$Router.push({
					name: 'checktooyedit',
					params: { dispatchNumber:dispatchNumber}
				})
			},
			search(e){
				uni.showLoading({
					title: '加载中'
				})
				this.refresh()
				setTimeout(() => {
					uni.hideLoading()
				}, 500)
			},
			sectionChange(e){
				this.current = e
				uni.showLoading({
					title: '加载中'
				})
				this.refresh()
				setTimeout(() => {
					uni.hideLoading()
				}, 500)
			},
		}
	}
</script>


<style lang="scss">
	.u-body-item {
		padding: 20rpx 15rpx;
	}
	.wrap {
		padding: 0rpx 12rpx;
	}

	.u-row {
		margin: 10rpx 2rpx;
	}
	.weikaishi2{
		font-size: 34rpx;
	}
	.weikaishi3{
		font-size: 30rpx;
	}
	.margin-zdy{
		padding: 5rpx 20rpx 5rpx 30rpx;
		background-color: #FFFFFF;
	}
</style>
